package com.academic.common.core.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;

import java.util.Date;
import java.io.Serializable;

/**
 * (SysBook)实体类
 *
 * @author makejava
 * @since 2024-10-31 22:40:20
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@TableName("sys_book")
public class SysBook implements Serializable {
    private static final long serialVersionUID = -90471226732023664L;

    @TableId(type = IdType.AUTO)
    private Long id;
/**
     * 图书名
     */
    private String bookName;
/**
     * 0在阅1归还
     */
    private Integer status;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
/**
     * 借阅人
     */
    private Long userId;


}

